package com.revai.engine.basic.service;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;

import com.revai.engine.basic.core.TableField;

import cn.hutool.json.JSONObject;

import java.util.List;


public interface TableService {
  List<Map<String, Object>> getTableData(JSONObject query) throws Exception;
  Object getTableItem(JSONObject query) throws Exception;
  Long addTableData(JSONObject query) throws Exception;
  Integer updateTableData(JSONObject query) throws Exception;
  Integer deleteTableData(JSONObject query) throws Exception;
  Object getTableValues(JSONObject query) throws Exception;
  List<Object> getForeignValues(JSONObject query) throws Exception;
  public Integer auditTableData(JSONObject entry, String authToken) throws Exception;
  public Integer approveTableData(JSONObject entry, String authToken) throws Exception;
  public void exportExcelToOutputStream(JSONObject requestBody, OutputStream ount) throws Exception;
}